import threading, multiprocessing
from ctypes import cdll

# 加载动态库
lib = cdll.LoadLibrary(r'python\temp\mutli.so')

if __name__ == "__main__":
    # 运行动态库中的函数
    t = threading.Thread(target=lib.loop)
    t.start()
    x = 0
    while True:
        x = x ^ 1
